<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateExpertsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //专家
        Schema::create('experts',function(Blueprint $table)
        {
            $table->increments('id');
            $table->integer('user_id')->default(0)->comment('用户id');
            $table->integer('photo_id')->default(0)->comment('头像id');
            $table->string('realname')->nullable()->comment('真实姓名');
            $table->string('unit_name')->nullable()->comment('单位名称');
            $table->string('position')->nullable()->comment('职称');
            $table->string('province',64)->nullable()->comment('省份');
            $table->string('city',64)->nullable()->comment('城市');
            $table->string('area',64)->nullable()->comment('地区');
            $table->text('strengths')->nullable()->comment('擅长领域');
            $table->integer('is_auth')->default(0)->comment('认证情况 0：未认证 1：通过 2：拒绝 3：注销认证');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
